
package vendingMachine.finance;

public class PaymentProcessor {
	private PaymentType type;

	public void readCard()
	{

		CreditPayment payment = new CreditPayment("3393993999939","Visa");
		type = payment;
	}

	public void readCash()
	{
		CashPayment cash = new CashPayment(40.00d);
		type = cash;
	}

	public PaymentType getType() {
		return type;
	}

	public void setType(PaymentType type) {
		this.type = type;
	}

}
